<?php 
	session_start(); 
	if (!$_SESSION["id_no"])
    {
        Header("Location: index.php");
    }
	else{
		if ($_SESSION['account_type']=='root'){
			$header="secured/header_login";
		}
		else{ 
			$header="header";
		}
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Ralimo System Panel</title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="css/jquery-ui-1.8.21.custom.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->

<!--  jquery core -->
<script src="js/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/jquery/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>


<!--  checkbox styling script -->
<script src="js/jquery/ui.core.js" type="text/javascript"></script>
<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
<script src="js/jquery/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery/geocoder.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3&libraries=places&key=AIzaSyDe8jbfLwcLgh5ERFqcJUGDM_svl2foezQ&sensor=false"></script>

<script type="text/javascript">
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
});
</script>
 

<![endif]>

<!--  styled select box script version 2 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>

<!--  styled select box script version 3 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<!--  styled file upload script --> 
<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "images/forms/choose-file.gif",
          imageheight : 21,
          imagewidth : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 


<!--  date picker script -->
<link rel="stylesheet" href="css/datePicker.css" type="text/css" />
<script src="js/jquery/date.js" type="text/javascript"></script>
<script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
        $(function()
{

// initialise the "Select date" link
$('#date-pick')
	.datePicker(
		// associate the link with a date picker
		{
			createButton:false,
			startDate:'01/01/2005',
			endDate:'31/12/2020'
		}
	).bind(
		// when the link is clicked display the date picker
		'click',
		function()
		{
			updateSelects($(this).dpGetSelected()[0]);
			$(this).dpDisplay();
			return false;
		}
	).bind(
		// when a date is selected update the SELECTs
		'dateSelected',
		function(e, selectedDate, $td, state)
		{
			updateSelects(selectedDate);
		}
	).bind(
		'dpClosed',
		function(e, selected)
		{
			updateSelects(selected[0]);
		}
	);
	
var updateSelects = function (selectedDate)
{
	var selectedDate = new Date(selectedDate);
	$('#d option[value=' + selectedDate.getDate() + ']').attr('selected', 'selected');
	$('#m option[value=' + (selectedDate.getMonth()+1) + ']').attr('selected', 'selected');
	$('#y option[value=' + (selectedDate.getFullYear()) + ']').attr('selected', 'selected');
}
// listen for when the selects are changed and update the picker
$('#d, #m, #y')
	.bind(
		'change',
		function()
		{
			var d = new Date(
						$('#y').val(),
						$('#m').val()-1,
						$('#d').val()
					);
			$('#date-pick').dpSetSelected(d.asString());
		}
	);

// default the position of the selects to today
var today = new Date();
updateSelects(today.getTime());

// and update the datePicker to reflect it...
$('#d').trigger('change');
});
</script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
	var id = "<?php if(isset($_GET['id'])){ echo $_GET['id']; } ?>";
	$(document).ready(function(){
		$(document).pngFix( );

		$("#rates-tabs").tabs();
		$.post("query/query-data.php", {search: id, flag: "affiliate"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~$%^\=?;<>\{\}\[\]\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			var result = txt.split("*");
		
			// $.each(result, function(key, val){
				// console.log(key + ":" + val);
			// });
			
			var contact = '';
			if( result[8] ){
				contact = "Contact Person: " + result[8] + "  Contact No.: " + result[9];
			}
			
			$(".result-header").append(
				"<center>" +
					"<h1 style='margin-bottom:5px;'>" + result[0] + "</h1>" +
					"<p style='margin-bottom:3px;'>" + result[1] + "</p>" +
					"<p style='margin-bottom:3px;'>Email: " + result[2] + "</p>" +
					"<p style='margin-bottom:3px;'>Tel No./Fax No./Mobile No.: " + result[3] + " / " + result[4] + " / " + result[5] + "</p>" +
					"<p style='margin-bottom:3px;'>URL: <a href='"+ result[7] +"'>"+ result[7] +"</a></p>" + 
					"<p style='margin-bottom:3px;'>"+ contact +"</p>" +
					"<hr>" +
				"</center>"
			);
			
			processRatesHeaders();
			processRates();
			processVehicles();
			processDrivers();
			processTOC();
		});
		
	});
	
	function processRatesHeaders(){
		$.post("query/getairportrateheader.php", {search: id}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&+\=?;<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			//console.log(txt);
			
			if( txt ){
				$("#airport-rates-table thead").append("<tr><th scope='col' class='rounded-left'>Vehicle Type</th><th scope='col' >Vehicle Models</th></tr>");
				var result = txt.split("|");
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						var rate = val.split("*");
						if( rate[0] != null ){
							$("#airport-rates-table tr:first").append("<th scope='col'>"+ rate[0] +"</th>");
						}
					}
				});
			}
		});
		
		$.post("query/getonewayrateheader.php", {search: id}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&+\=?;<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			if( txt ){
				$("#oneway-rates-table thead").append("<tr><th scope='col' class='rounded-left'>Vehicle Type</th><th scope='col' >Vehicle Models</th></tr>");
				var result = txt.split("|");
				
				$.each(result, function(key, val){
					//console.log(key + ":" + val);
					if( key != 0 ){
						val = val.replace("*", "");
					}
					var rate = val.split("*");
					if( rate[0] != null ){
						$("#oneway-rates-table tr:first").append("<th>"+ rate[0] +"</th>");
					}
				});
			}
		});
	}
	
	function processRates(){
		$.post("query/query-data.php", {search: id, flag: "afairport"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&()+\=?;'<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			if( txt ){
				var result = txt.split("|");
				var tmpvehicle = '';
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						//console.log(key + ":" + val);
						
						var rate = val.split("*");
						
						if(tmpvehicle != rate[2]){
							tmpvehicle = rate[2];
							
							$("#airport-rates-table tbody").append(
								"<tr>"+
									"<td>"+rate[1]+"</td>"+
									"<td>"+rate[2]+"</td>"+
								"</tr>"
							);
						}
						$("#airport-rates-table tbody tr:last").append("<td>" + rate[4] + " " + addCommas(rate[5]) +"</td>");
					}
				});
			}else{
				$("#result-rates-airport").append("<span style='color: red;'>No Airport Rates Available.</span>");
			}
		});
		
		$.post("query/query-data.php", {search: id, flag: "afhourly"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&()+\=?;'<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			if( txt ){
				var result = txt.split("|");
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						//console.log(key + ":" + val);
						var rate = val.split("*");
						
						$("#hourly-rates-table tbody").append(
							"<tr>"+
								"<td>"+rate[1]+"</td>"+
								"<td>"+rate[2]+"</td>"+
								"<td>"+rate[3]+"</td>" +
								"<td>"+rate[4] + " " + addCommas(rate[5])+"</td>" +
							"</tr>"
						);
						
					}
				});
			}else{
				$("#hourly-rates-table").remove();
				$("#result-rates-hourly").append("<br><span style='color: red; padding: 10px;'>No Hourly Rates Available.</span>");
			}
		});
		
		$.post("query/query-data.php", {search: id, flag: "afoneway"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&()+\=?;'<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			if( txt ){
				var result = txt.split("|");
				var tmpvehicle = '';
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						//console.log(key + ":" + val);
						var rate = val.split("*");
						//console.log("Vehicle: " + rate[1] + " --- Rate: " + rate[3] + rate[4]);
						if(tmpvehicle != rate[2]){
							tmpvehicle = rate[2];
							
							$("#oneway-rates-table tbody").append(
								"<tr>"+
									"<td>"+rate[1]+"</td>"+
									"<td>"+rate[2]+"</td>"+
								"</tr>"
							);
						}
						$("#oneway-rates-table tbody tr:last").append("<td>"+rate[4]+ " " + addCommas(rate[5]) +"</td>");
					}
				});
			}else{
				$("#result-rates-oneway").append("<span style='color: red;'>No Oneway Rates Available.</span>");
			}
		});
		
		/*-------display remarks start -------*/
		$.post("query/query-data.php", {search: id, flag: "afnotes"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/["\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/u2022/gi, '<br>&#09; &#8226; &nbsp;');
			
			if( txt ){
				$("#result-rates-notes").append("<div>" + txt + "</div>");
			}else{
				$("#result-rates-notes").append("<br><span style='color: red; padding: 10px;'>No Notes Available.</span>");
			}
		});
		/*-------display remarks end -------*/
		
		/*-------display services start -------*/
		$.post("query/query-data.php", {search: id, flag: "afservices"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/["\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/u2022/gi, '<br>&#09; &#8226; &nbsp;');
			
			if( txt ){
				$("#result-rates-services").append("<div>" + txt + "</div>");
			}else{
				$("#result-rates-services").append("<br><span style='color: red; padding: 10px;'>No Services Available.</span>");
			}
		});
		/*-------display services end -------*/
		
		/*-------display file start -------*/
		$.post("query/query-data.php", {search: id, flag: "affile"}, function(data){
			var txt = '';
			var tx = '';
			var ctr = 0;
			var num = 11;
			var txtnew = '';
			var result = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&()+\=?;'<>\{\}\[\]\\]/gi, '');
			tx = txt.replace(/["\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			
			if( txt ){
				var result = txt.split("|");
				$.each(result, function(key, val){
					//console.log(key + ":" + val);
					if( key != 0 ){
						val = val.replace("*", "");
					}
					var filedisp = val.split("*");
					if( filedisp[0] ){
					
					var string = filedisp[0];
					var lastindex = string.length;
					var index = 0;
					var firstindex = 0;
						while((index = string.indexOf('/', index)) != -1) {
							index = string.indexOf('/', index);
							index++;
							firstindex = index;
						}
						var result = string.substring(firstindex,lastindex);
						$("#seealso").append("<li> <a href='"+ filedisp[0] +"'  target='_tab'> "+ result +"</a></li>" + "\n");
					}
				});
			}
		});
		/*-------display file end -------*/
	}                                                  
	
	function processVehicles(){
		$.post("query/query-data.php", {search: id, flag: "afvehicle"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&()+\=?;'<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			
			if( txt ){
				var result = txt.split("|");
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						//console.log(key + ":" + val);
						var rate = val.split("*");
						
						$("#vehicles-table tbody").append(
							"<tr>"+
								"<td>"+rate[1]+"</td>"+
								"<td><a href='affiliate_vehicles_view.php?id="+ rate[0] +"'>"+rate[2]+"</a></td>"+
								"<td>"+rate[3]+"</td>"+
							"</tr>"
						);
					}
				});
			}else{
				$("#vehicles-table").remove();
				$("#result-vehicles .inner-result-title").after("<br><span style='color: red; padding: 10px;'>No Vehicles Available.</span>");
			}
		});
	}
	
	function processDrivers(){
		$.post("query/query-data.php", {search: id, flag: "afdriver"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			
			txt = txt.replace(/[`~!#$%^&\=?;'<>\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/","/g, "*");
			txt = txt.replace(/"/g, "");
			//console.log(txt);
			if( txt ){
				var result = txt.split("|");
				$.each(result, function(key, val){
					if( val ){
						if( key != 0 ){
							val = val.replace("*", "");
						}
						//console.log(key + ":" + val);
						var rate = val.split("*");
						
						$("#drivers-table tbody").append(
							"<tr>"+
								"<td>"+rate[1]+"</td>"+
								"<td>"+rate[2]+"</td>"+
							"</tr>"
						);
					}
				});
			}else{
				$("#drivers-table").remove();
				$("#result-drivers .inner-result-title").after("<br><span style='color: red; padding: 10px;'>No Drivers Available.</span>");
			}
		});
	}
	
	function processTOC(){
		$.post("query/query-data.php", {search: id, flag: "aftoc"}, function(data){
			var txt = '';
			$.each(data, function(key, val){
				txt += val;
			});
			//console.log("Data: " + txt);
			txt = txt.replace(/["\{\}\[\]\\\/]/gi, '');
			txt = txt.replace(/u2022/gi, '<br>&#09; &#8226; &nbsp;');
			if( txt ){
				$("#toc").append(txt);
			}else{
				$("#toc").append("<br><span style='color: red; padding: 10px;'>No Terms and Conditions Available.</span>");
			}
		});
	}
	
	function addCommas(nStr){
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? '.' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + ',' + '$2');
		}
		return x1 + x2;
	}
</script>
</head>
<body> 

<?php 
	include"template/$header.php"; 

	include("query/db_connection.php");
?>
  <div class='clear'></div>
<!-- start content-outer ........................................................................................................................START -->
	<div id='content-outer'>
	<!-- start content -->
	<div id='content'>

	<!--  start page-heading -->
	<div id='page-heading'>
		<h1>Affiliate Information</h1>
	</div>
	<!-- end page-heading -->

	<table border='0' width='100%' cellpadding='0' cellspacing='0' id='content-table'>
	<tr>
		<th rowspan='3' class='sized'><img src='images/shared/side_shadowleft.jpg' width='20' height='300' alt='' /></th>
		<th class='topleft'></th>
		<td id='tbl-border-top'>&nbsp;</td>
		<th class='topright'></th>
		<th rowspan='3' class='sized'><img src='images/shared/side_shadowright.jpg' width='20' height='300' alt='' /></th>
	</tr>
	<tr>
		<td id='tbl-border-left'></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id='content-table-inner'>
			<!--  start table-content  -->
			<div id="result" style="min-height: 250px; position: relative;">
				<input type="hidden" id="vehicles" value=""/>
				<div class='result-header'></div>
				</br>
				<div class='result-body' style="padding: 10px; font-size: 14px;">
					<div id="result-rates" class="inner-result-div">
						<div class="inner-result-title">Rates</div>
						<div id="rates-tabs">
							<ul>
								<li><a href="#result-rates-airport">Airport Rates</a></li>
								<li><a href="#result-rates-hourly">Hourly Rates</a></li>
								<li><a href="#result-rates-oneway">One way Rates</a></li>
								<li><a href="#result-rates-services">Other Services</a></li>
								<li><a href="#result-rates-notes">Notes</a></li>
							</ul>
							<div id="result-rates-airport" class="inner-rates-div">
								<table id="airport-rates-table" class="rounded-corner" cellspacing="0px" style="margin: 0 auto;">
									<thead></thead>
									<tbody></tbody>
									<tfoot></tfoot>
								</table>
							</div>
							<div id="result-rates-hourly" class="inner-rates-div">
								<table id="hourly-rates-table" class="rounded-corner" cellspacing="0px" style="margin: 0 auto;">
									<thead>
										<tr>
											<th scope='col' class='rounded-left'>Vehicle Type</th>
											<th scope='col'>Vehicle Models</th>
											<th scope='col' style="width: 100px;">Minimum Hour/s</th>
											<th scope='col' style="width: 100px;">Rate</th>
										</tr>
									</thead>
									<tbody></tbody>
									<tfoot></tfoot>
								</table>
							</div>
							<div id="result-rates-oneway" class="inner-rates-div">
								<table id="oneway-rates-table" class="rounded-corner" cellspacing="0px" style="margin: 0 auto;">
									<thead></thead>
									<tbody></tbody>
									<tfoot></tfoot>
								</table>
							</div>
							<div id="result-rates-services" class="inner-rates-div" style="font-size: 14px; line-height: 15px;"></div>
							<div id="result-rates-notes" class="inner-rates-div" style="font-size: 14px; line-height: 15px;"></div>
						</div>
					</div>
					<div id="result-vehicles" class="inner-result-div">
						<div class="inner-result-title">Vehicles</div>
						<div class="inner-div" style="padding: 10px; overflow: scroll; overflow-x: hidden; height: 250px;">
							<table id="vehicles-table" class="rounded-corner" cellspacing="0px" style="margin: 0 auto;">
								<thead>
									<tr>
										<th scope='col' class='rounded-left' style="width: 200px;">Vehicle Type</th>
										<th scope='col'>Vehicle Models</th>
										<th scope='col' style="width: 120px;">Capacity</th>
									</tr>
								</thead>
								<tbody></tbody>
								<tfoot></tfoot>
							</table>
						</div>
					</div>
					<div id="result-drivers" class="inner-result-div">
						<div class="inner-result-title">Drivers</div>
						<div class="inner-div" style="padding: 10px; overflow: scroll; overflow-x: hidden; height: 250px;">
							<table id="drivers-table" class="rounded-corner" cellspacing="0px">
								<thead>
									<tr>
										<th scope='col' class='rounded-left'>Driver Name</th>
										<th scope='col'>Contact #</th>
									</tr>
								</thead>
								<tbody></tbody>
								<tfoot></tfoot>
							</table>
						</div>
					</div>
					<div id="result-toc" class="inner-result-div">
						<div class="inner-result-title">Terms and Conditions</div>
						<div id="toc" class="inner-div" style="text-align: justify; font-size: 14px; line-height: 15px; padding: 10px; overflow: scroll; overflow-x: hidden; height: 250px;"></div>
					</div>
					<div id="result-seealso" class="inner-result-div">
						<div class="inner-result-title">See Also</div>
						<div id="seealso" class="inner-div" style="text-align: justify; font-size: 14px; line-height: 15px; padding: 10px; overflow: scroll; overflow-x: hidden; height: 250px;"></div>
					</div>
					
				</div>
				<div class='result-footer' style="position: absolute; bottom: 0px; right: 300px;"></div>
			</div>
			<!--  end table-content  -->
	
			<div class='clear'></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id='tbl-border-right'></td>
	</tr>
	<tr>
		<th class='sized bottomleft'></th>
		<td id='tbl-border-bottom'>&nbsp;</td>
		<th class='sized bottomright'></th>
	</tr>
	</table>
	<div class='clear'>&nbsp;</div>

	</div>
	<!--  end content -->
	<div class='clear'>&nbsp;</div>
	</div>
	<!--  end content-outer........................................................END -->";
				
<!--  start nav-outer-repeat................................................... END -->

  <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<?php include"template/footer.php"; ?>
 
</body>
</html>


